import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css';
import 'ant-design-vue/dist/antd.css';
import { DatePicker, TimePicker, Calendar } from 'ant-design-vue';
import App from './App.vue'
import router from './router'
import store from './store'
import '../assets/icon.js'
import { Storekey } from "../interface";
import '../components/userWorker'
import 'highlight.js/styles/default.css'
import highlight from 'highlight.js'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
highlight.highlightAll()
const app = createApp(App)
app.use(DatePicker).use(TimePicker).use(Calendar)
app.use(ElementPlus, { locale: zhCn, size: 'default' })
  .use(store, Storekey).use(router).mount('#app')

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}